<%-- 
    Document   : checkLoad
    Created on : May 18, 2012, 9:28:04 AM
    Author     : ciummo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<script type="text/javascript" src="/DGestWebServer/SCRIPT/jquery-1.6.2.js"></script>
<script type="text/javascript" src="/DGestWebServer/SCRIPT/Ajax.js"></script>

<script type="text/javascript">
    
    $(document).ready(function(){
        $("#checkButton").click(function(){
            $("#check").fadeToggle("slow");
        })
    });

function open_win()
{
window.open("http://www.w3schools.com")
}

</script>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="/DGestWebServer/css/dgest.css"/>
        <title>JSP Page</title>
    </head>
    <body>
        
        <%@ include file="../adminDialogBar.jspf" %> 
        
        <h1>Check List</h1>
        
        <h2>Aggiungi</h2>
        
        <table>
        
            
            <html:form action="/Check.do?method=checkFromFile" method="post" enctype="multipart/form-data">
                
                    <td>
                    <html:select property="prop" >
                    <html:option value="0">Seleziona...</html:option>
                    <html:optionsCollection name="ListaArticoliNonCheck" property="list" label="nome" value="codArticolo"/>
                    </html:select>
                    </td>
                
            <br />
            <td>
                    Carica : 
            <html:file property="file" size="50" />
            <html:submit>
                    Carica file
            </html:submit>
            </td>
            </html:form>
            </table>
            
        
        <h2>Lista </h2>
        
        <table class="objectList">
                        <thead>
                            <tr> <th>Cod Prodotto</th>  <th>Nome</th> <th></th> </tr>

                        </thead>    
                            
                        <tbody>
                            
                            <logic:iterate id="listaValidazioni" name="ListaValidazioni" property="listaValidazioni" >
                                <pg:item>
                                    <tr>
                                        <td><bean:write name="listaValidazioni" property="codArticolo"></bean:write></td>
                                        
                                        <td><bean:write name="listaValidazioni" property="nomeProdotto"></bean:write></td>
                                        
                                        <td><html:link href="Check.do?method=deleteCheckList" paramId="codArticolo" paramName="listaValidazioni" paramProperty="codArticolo"><img src="/DGestWebServer/images/erase.png" alt="Elimina CheckList" height="25px" width="25px"/></html:link>
                                        
                                            
                                        
                                            <a href="#" onClick="window.open('Check.do?method=viewCheckList&codArticolo=<bean:write name="listaValidazioni" property="codArticolo"/>','mywindow','width=400,height=600', 'scrollbars=yes')"><img type="image" src="/DGestWebServer/images/view.png" height="25px" width="25px" value="Visualizza"/></a>
                                       
                                        
                                        
                                            </td>    
                                    </tr>    
                                    
                                    
                                      
                                    
                                       
                                   </pg:item>     
                            </logic:iterate>
                
                        </tbody>
                
                    </table>
        
                                            

                            
                                    
        
    </body>
</html>
